-
Notifications
You must be signed in to change notification settings - Fork 11
CodeMirror v6 + JSON Schema support #4116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
…cted.
- update to code mirrors own CSS now uses !important for the same class
with a relative position
PeteDarinzo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed with comment
|
@PeteDarinzo thanks for looking at these with Ryan. Does this look complete and mergable from your POV? If so could you please approve the PR to indicate as much, or if any concerns or more testing / closer look needed don't hesitate to say as much. Thanks much would love to get it in (safely) when ready. |
|
@amcclain PR is nearly ready, but I almost overlooked the legacy |
Great, fully agree with that. In general it's nice to have an "escape hatch" that allows us to set any underlying props that the library component might support - is that general concept not supportable with the upgraded version? Doesn't need to be a blocker but would be interested to understand better |
PeteDarinzo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
# Conflicts: # CHANGELOG.md
|
Looks like the line number/tree gutter of json input gets substantially wider -- I think its a regression. Can we take a look? |
desktop/cmp/input/CodeInput.ts
Outdated
| } = this.componentProps, | ||
| extensions = [ | ||
| // Theme | ||
| this.themeCompartment.of(this.getThemeExtension()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you build the themeCompartment.of in to getThemeExtension(), so this looks like all the other extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but note changes to line 301, 498, and 501-503. getThemeExtension will now create the theme extension Compartment and the reaction calls getTheme() to reconfigure.
I reordered the lint gutter, number gutter and fold gutter to match previous CM5. The widths are actually the same I think the order is what made it look wider as there was alot of empty space to the left of the number. |
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md # desktop/cmp/input/CodeInput.scss
Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.
developbranch as of last change.breaking-changelabel + CHANGELOG if so.If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.